import service from '@/utils/request'

// @Tags ArticleClass
// @Summary 创建ArticleClass
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ArticleClass true "创建ArticleClass"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /articleClass/createArticleClass [post]
export const createArticleClass = (data) => {
     return service({
         url: "/articleClass/createArticleClass",
         method: 'post',
         data
     })
 }


// @Tags ArticleClass
// @Summary 删除ArticleClass
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ArticleClass true "删除ArticleClass"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /articleClass/deleteArticleClass [delete]
 export const deleteArticleClass = (data) => {
     return service({
         url: "/articleClass/deleteArticleClass",
         method: 'delete',
         data
     })
 }

// @Tags ArticleClass
// @Summary 删除ArticleClass
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除ArticleClass"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /articleClass/deleteArticleClass [delete]
 export const deleteArticleClassByIds = (data) => {
     return service({
         url: "/articleClass/deleteArticleClassByIds",
         method: 'delete',
         data
     })
 }

// @Tags ArticleClass
// @Summary 更新ArticleClass
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ArticleClass true "更新ArticleClass"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /articleClass/updateArticleClass [put]
 export const updateArticleClass = (data) => {
     return service({
         url: "/articleClass/updateArticleClass",
         method: 'put',
         data
     })
 }


// @Tags ArticleClass
// @Summary 用id查询ArticleClass
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ArticleClass true "用id查询ArticleClass"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /articleClass/findArticleClass [get]
 export const findArticleClass = (params) => {
     return service({
         url: "/articleClass/findArticleClass",
         method: 'get',
         params
     })
 }


// @Tags ArticleClass
// @Summary 分页获取ArticleClass列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取ArticleClass列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /articleClass/getArticleClassList [get]
 export const getArticleClassList = (params) => {
     return service({
         url: "/articleClass/getArticleClassList",
         method: 'get',
         params
     })
 }